/*
 * @Description: 商城账单原型
 * @Author: tao.xie
 * @Date: 2019-03-29 11:14:04
 * @Last Modified by: tao.xie
 * @Last Modified time: 2019-03-29 16:12:59
 */
export default class MallBillModel {
  /**
   *Creates an instance of MallBillModel.
   * @param {String} title 标题
   * @param {String} payName 支付名称
   * @param {String} bankCardNo 银行卡号后四位
   * @param {String} orderNo 订单编号
   * @param {String} orderPrice 订单金额
   * @param {Integer} orderStatus 订单状态,-2.失败，-1.已退款，0.成功，1.交易中（充值：待充值；消费：待支付；退款：待退款）
   * @param {String} createTime 订单创建时间
   * @param {String} payTime 订单创建时间
   * @param {String} tradeNo 账单编号
   * @memberof MallBillModel
   */
  constructor(
    title,
    payName,
    bankCardNo,
    orderNo,
    orderPrice,
    orderStatus,
    createTime,
    payTime,
    tradeNo
  ) {
    this.title = title
    this.payName = payName
    this.bankCardNo = bankCardNo
    this.orderNo = orderNo
    this.orderPrice = parseFloat(orderPrice).toFixed(2) + ''
    this.orderStatus = orderStatus
    this.createTime = createTime
    this.payTime = payTime
    this.tradeNo = tradeNo
  }
}
